/**
 * @file main.cpp
 * @author your name (you@domain.com)
 * @brief 
 * @version 0.1
 * @date 2021-10-28
 * 
 * @copyright Copyright (c) 2021
 * 
 */
#include <iostream>
#include "synchronizer.h"
#include "sy_fifo.h"
#include "sy_event.h"

sy_fifo_handle temp;

int main(int, char**) {
    temp.fifo_name = "test";
    SY_FIFO_RET ret = sy_fifo_init(&temp);
    for (int i = 0;i < 10; i++) {
        sy_fifo_push(&temp, i);
    }

    for (int i = 0;i < 10; i++) {
        uint32_t p;
        sy_fifo_output(&temp, &p);
        std::cout << "fifo num ->" << temp.fifo_number << " fifo data ->" << p << std::endl;
    }
    std::cout << "退出程序" << std::endl;
    
}
